import request from '@/utils/request'

// 查询指令
export function getInstruct (data) {
  return request({
    url: '/directive/getPage',
    method: 'post',
    data: data,
    headers: {
      'Content-Type': 'application/json',
      'Authorization': window.localStorage.getItem('token'),
    }
  })
}


// 删除指令
export function deleteInstruct (data) {
  return request({
    url: '/directive/delDirective',
    method: 'get',
    params: data,
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded',
      'Authorization': window.localStorage.getItem('token'),
    }
  })
}